﻿using Abp.Runtime.Validation;
using NetCore.Users.Dto;
using System.ComponentModel;

namespace NetCore.Dtos
{
    /// <summary>
    /// 当前登录用户
    /// </summary>
    [Description("登录用户")]
    public class CurrentUser : UserDto
    {
        //public string Name { get; set; }
        public virtual void AddValidationErrors(CustomValidationContext context)
        {
            //if (!Phone.Validate())
            //{
            //    context.Results.Add(new ValidationResult("请输入正确的电话号码!"));
            //}
            //if (Files.Count > 20)
            //{
            //    context.Results.Add(new ValidationResult("批量上传文件最多20个"));
            //}
        }
    }
}
